function height1(){
	winheight=$(window).height()
	topheight=$('.top').outerHeight()
	copyheight=$('.copyright').outerHeight()
	if(winheight>=700){
	 o=winheight-topheight-copyheight
	 return o}else{
			if(winheight>=900){
				o=984
				return o
				}else{
					o=700
					return o
					}
			}
	}

$(function(){
	
	$("#kinMaxShow").kinMaxShow({
		    imageAlign:'top center',
			height: height1(),
			hoverPause:false,
			intervalTime:4,
			button:{
					showIndex:false,
					 normal:{width:'14px',height:'14px',lineHeight:'14px'
,right:'10px',top:'10px',fontSize:'10px',background:"#cccaca",border:"1px solid #ffffff",color:"#666666",textAlign:'center',marginRight:'8px',fontFamily:"Verdana",float:'left',borderRadius:'50px'},
  focus:{background:"#CC0000",border:"1px solid #FF0000",color:"#000000"}
				},

			callback:function(index,action){
				switch(index){
					case 0 :
							if(action=='fadeIn'){
								$(this).find('.sub_1_1').animate({left:'70px'},600)
								
								
							}
							break;
							
					case 1 :
							if(action=='fadeIn'){
								$(this).find('.sub_2_1').animate({left:'70px'},600)
								
							}
							break;
							
					case 2 :
							if(action=='fadeIn'){
								$(this).find('.sub_3_1').animate({left:'70px'},600)
								
							}
							break;
				   case 3 :
							if(action=='fadeIn'){
								$(this).find('.sub_4_1').animate({left:'70px'},600)
								
							}
							break;													
					
				}
			}
		
		});


});
var height= document.body.clientHeight;
var bannerheight=height-102
$("#kinMaxShow").css("height",bannerheight)
